package mr.ali.video.web.controller;

import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author Administrator
 */
@RestController
@RequestMapping("/web")
public class Home {

   @GetMapping("/login.html")
   public ModelAndView login() {
      return new ModelAndView("login");
   }

   @GetMapping("/index.html")
         public ModelAndView index() {
       return new ModelAndView("index");
   }
    @GetMapping("/movie")
    public ModelAndView movie() {
        return new ModelAndView("movie_index.html");
    }
    @GetMapping("/of_play")
    public ModelAndView play() {
        return new ModelAndView("of_play_index.html");
    }
    @GetMapping("/user")
    public ModelAndView user() {
        return new ModelAndView("setUser_index.html");
    }
    @GetMapping("/coin")
    public ModelAndView coin() {
        return new ModelAndView("coin_detail.html");
    }
    @GetMapping("/prizes")
    public ModelAndView prizes() {
        return new ModelAndView("prizes.html");
    }
    @GetMapping("/selection")
    public ModelAndView selection() {
        return new ModelAndView("selectionIndex.html");
    }

}
